package com.ruoyi.retail.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.retail.domain.ErpMember;
import com.ruoyi.retail.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description
 * @Author 赵子浩
 * @Date 2025/4/2 9:06
 **/
@RestController
@RequestMapping("/system/member")
public class MemberController extends BaseController {
    @Autowired
    private
    IMemberService memberService;

    @GetMapping("/list")
    public TableDataInfo list(ErpMember member) {
        startPage();
        List<ErpMember> list = memberService.selectMemberList(member);
        return getDataTable(list);
    }
}